package com.sxhuayuan.parking.controller.admin;

import com.sxhuayuan.parking.compenent.Pageable;
import com.sxhuayuan.parking.compenent.web.RespMessage;
import com.sxhuayuan.parking.controller.BaseController;
import com.sxhuayuan.parking.service.ParkingInOutService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 车辆出入记录
 * @author helong
 * @create 2019-08-26 14:02
 */
@RestController("adminParkingInOutController")
@RequestMapping("/admin/parkinginout")
public class ParkingInOutController extends BaseController {
	@Resource(name = "parkingInOutServiceImpl")
	ParkingInOutService service;

	@PostMapping("/list")
	public RespMessage list(@RequestBody Pageable pageable){
		return successResp(service.findByPage(pageable));
	}

}
